package com.cqie.rbac.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * <p>
 * 菜单实体
 * </p>
 *
 * @author 夏兵
 * @since 2021-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
public class SysMenu extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 程序路径
     */
    @TableField(value = "appUrl")
    private String appUrl;

    /**
     * 图标路径
     */
    @TableField(value = "imgUrl")
    private String imgUrl;

    /**
     * 权限码
     */
    private String permissionCode;
    /**
     * 排序码
     */
    @TableField(value = "sortCode")
    private Integer sortCode;

    /**
     * 菜单类型
     */
    private String menuType;
    /**
     * 上级菜单Id
     */
    @TableField(value = "parentId")
    private Long parentId;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * 创建时间
     */
    private Date createTime;


}
